package com.guigu.pd.serviceapi.workfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "pd-work",path = "/work/transportorder")
public interface TransportOrderFeign {

    @GetMapping("/gettransportbyorderid/{id}")
    public String getTransportbyorderId(@PathVariable("id")String id);

    @RequestMapping("/addtransportorder/{id}")
    public Boolean addtransportorder(@PathVariable("id") String id);

    //根据运单编号修改状态为3
    @GetMapping("/updatestatus/{id}")
    Boolean updatestatus(@PathVariable("id") String id);
}